private["_timeAccleration"];

if (daytime > 17 || daytime < 6) then 
{ 
    _timeAccleration = 12; 
} 
else  
{
    _timeAccleration = 6;
};

if(timeMultiplier != _timeAccleration) then { setTimeMultiplier _timeAccleration; };